Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses torch.fx to parallelize and transform pipelined models #193

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

michaelbenayoun
Copy link
Member

@michaelbenayoun michaelbenayoun commented Oct 19, 2022

What does this PR do?

  • Provides a custom tracer, built upon transformers.utils.fx.HFTracer allowing the trace and transform the models we support in optimum-graphcore
  • A set of pipelining related transformations
  • Rewrites all the parallelize / deparallelize methods we support
  • Integrates that with the IPUTrainer

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@michaelbenayoun michaelbenayoun changed the title Fx transformations Uses torch.fx to parallelize and transform pipelined models Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants